package diamondServer.clientserver;

import java.net.InetSocketAddress;

import diamondServer.clientserver.threadpool.ClientTask;
import diamondServer.clientserver.threadpool.PoolManager;
import diamondServer.clientserver.threadpool.Task;


public class MainClient {

	public static void main(String[] args) throws InterruptedException {
		
		PoolManager man = new PoolManager();
		String sa = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
		String sb = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
		String sc = "ccccccccccccccccccccccccccccccccccccc";
		String sd = "ddddddddddddddddddddddddddddddddddddd";
		Task t1 = new ClientTask(sa + sa+sa+sa+sa , new InetSocketAddress("localhost", 1234),5,0,0);
		Task t2 = new ClientTask(sb + sb+sb+sb+sb , new InetSocketAddress("localhost", 1234));
		Task t3 = new ClientTask(sc + sc+sc+sc+sc , new InetSocketAddress("localhost", 1234));
		Task t4 = new ClientTask(sd + sd+sd+sd+sd , new InetSocketAddress("localhost", 1234));
		man.addTask(t1);
		man.addTask(t2);
		man.addTask(t3);
		man.addTask(t4);
		man.InvokeAll();
		man.shutdown();
	}
}

	

